/**
 * @输入两个整数，显示第一个数除以第二个数的结果，保留三位小数
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	int x, y;
	
	do {
		printf("请输入第一个数：");
		x = GetInt();
	} while (x <= 0);

	do {
		printf("请输入第二个数：");
		y = GetInt();
	} while (y <= 0);

	float s = (float)x / y;

	printf("%d / %d = %.3f\n", x, y, s);
	
}
